function Getresult(){
    var currradioname;
    var currradio;
    var q_ids = new Array();
    var q_ids_nodes = document.getElementsByTagName("input");
    var count = q_ids_nodes.length;
    for (var i = 0; i < count; i++) {
        if (q_ids_nodes[i].className == "q_id") {
            q_ids.push(q_ids_nodes[i].value);
            
        }
    }
    var result = "";
    var showresult = "";
    var temp;
    for (var i = 0; i < count; i++) {
        currradioname = "radio_" + i.toString();
        currradio = document.getElementsByName(currradioname);
        
        for (var r = 0; r < currradio.length; r = r + 1) {
            if (currradio[r].checked) {
                temp = currradio[r].value;
                result += "@" + q_ids[i] + "#" + temp;
                switch (parseInt(temp)) {
                    case 1:
                        showresult += (i + 1) + ".A ";
                        break;
                    case 2:
                        showresult += (i + 1) + ".B ";
                        break;
                    case 3:
                        showresult += (i + 1) + ".C ";
                        break;
                    case 4:
                        showresult += (i + 1) + ".D ";
                        break;
                }
            }
        }
    }
    document.getElementById("result").value = result;
    var resultshow=document.getElementById("resultshow");
    if (resultshow.hasChildNodes()) {
        resultshow.removeChild(resultshow.childNodes[0]);
    }
    resultshow.appendChild(document.createTextNode(showresult));
    document.getElementById("answers").style.display = "block";
    document.getElementById("update").style.display = "none";
    scroller("answers", 500);
}
